﻿using System;

namespace ConsoleApp7
{
    class Program
    {
        static void Main(string[] args)
        {
            RefClass outclass = new RefClass();
            int a = 40;
            Console.WriteLine("数字为："+a);
            Console.WriteLine("outcome is:"+outclass.Judge(ref a));

            int t = 23;
            outclass.Method(ref t);
            Console.WriteLine("t的值为："+t);
            Console.WriteLine("outcome is:"+t.ToString());
            Console.ReadKey();

            OutClass outClass= new OutClass();
            bool rs;
            outClass.Judge(20, out rs);
            Console.WriteLine(rs);

            int r;
            outClass.Display(out r);
            Console.WriteLine("r的值为："+r.ToString());
            Console.ReadKey();
            





        }
    }
}
